﻿namespace QLBanHang.Report
{
    using DevExpress.Utils;
    using DevExpress.XtraPrinting;
    using DevExpress.XtraReports.UI;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Drawing.Printing;

    public class d_bc_sonhapkhochitiet : XtraReport
    {
        private BottomMarginBand BottomMargin;
        private IContainer components = null;
        private DetailBand Detail;
        private CalculatedField f_tongsoluongnhap;
        private CalculatedField f_tongsoluongxuatkhac;
        private CalculatedField f_tongtiennhap;
        private CalculatedField f_tongtientoncuoi;
        private CalculatedField fr_tungaydenngay;
        private GroupFooterBand GroupFooter1;
        private GroupHeaderBand GroupHeader1;
        private XRLabel label38;
        private XRLabel label39;
        private XRLabel label40;
        private PageHeaderBand PageHeader;
        private ReportFooterBand ReportFooter;
        private ReportHeaderBand ReportHeader;
        private XRTable table1;
        private XRTableCell tableCell1;
        private XRTableCell tableCell12;
        private XRTableCell tableCell15;
        private XRTableCell tableCell17;
        private XRTableCell tableCell2;
        private XRTableCell tableCell3;
        private XRTableCell tableCell5;
        private XRTableCell tableCell6;
        private XRTableCell tableCell7;
        private XRTableRow tableRow1;
        private TopMarginBand TopMargin;
        private XRLabel xrLabel1;
        private XRLabel xrLabel2;
        private XRLabel xrLabel3;
        private XRTable xrTable1;
        private XRTableCell xrTableCell1;
        private XRTableCell xrTableCell4;
        private XRTableCell xrTableCell6;
        private XRTableRow xrTableRow1;

        public d_bc_sonhapkhochitiet()
        {
            this.InitializeComponent();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        public void f_load(DataSet ds)
        {
            base.DataSource = ds;
        }

        private void InitializeComponent()
        {
            XRSummary summary = new XRSummary();
            XRSummary summary2 = new XRSummary();
            XRSummary summary3 = new XRSummary();
            this.label39 = new XRLabel();
            this.tableCell6 = new XRTableCell();
            this.f_tongtiennhap = new CalculatedField();
            this.TopMargin = new TopMarginBand();
            this.xrTableCell6 = new XRTableCell();
            this.fr_tungaydenngay = new CalculatedField();
            this.label40 = new XRLabel();
            this.tableCell15 = new XRTableCell();
            this.tableCell5 = new XRTableCell();
            this.PageHeader = new PageHeaderBand();
            this.BottomMargin = new BottomMarginBand();
            this.tableCell17 = new XRTableCell();
            this.f_tongsoluongxuatkhac = new CalculatedField();
            this.xrTable1 = new XRTable();
            this.GroupFooter1 = new GroupFooterBand();
            this.tableCell12 = new XRTableCell();
            this.tableRow1 = new XRTableRow();
            this.xrLabel1 = new XRLabel();
            this.table1 = new XRTable();
            this.ReportFooter = new ReportFooterBand();
            this.tableCell3 = new XRTableCell();
            this.ReportHeader = new ReportHeaderBand();
            this.Detail = new DetailBand();
            this.xrTableCell1 = new XRTableCell();
            this.tableCell7 = new XRTableCell();
            this.f_tongsoluongnhap = new CalculatedField();
            this.f_tongtientoncuoi = new CalculatedField();
            this.tableCell1 = new XRTableCell();
            this.xrTableRow1 = new XRTableRow();
            this.xrTableCell4 = new XRTableCell();
            this.label38 = new XRLabel();
            this.tableCell2 = new XRTableCell();
            this.GroupHeader1 = new GroupHeaderBand();
            this.xrLabel2 = new XRLabel();
            this.xrLabel3 = new XRLabel();
            this.xrTable1.BeginInit();
            this.table1.BeginInit();
            this.BeginInit();
            this.label39.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.label39.LocationFloat = new PointFloat(48.52848f, 10.00001f);
            this.label39.Name = "label39";
            this.label39.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.label39.SizeF = new SizeF(219.6665f, 22.99998f);
            this.label39.StylePriority.UseFont = false;
            this.label39.StylePriority.UseTextAlignment = false;
            this.label39.Text = "Dược sĩ chủ quầy thuốc";
            this.label39.TextAlignment = TextAlignment.TopCenter;
            this.tableCell6.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "Table.gianhap", "{0:#,#}") });
            this.tableCell6.Name = "tableCell6";
            this.tableCell6.Padding = new PaddingInfo(2, 2, 0, 2, 100f);
            this.tableCell6.StylePriority.UsePadding = false;
            this.tableCell6.StylePriority.UseTextAlignment = false;
            this.tableCell6.Text = "tableCell6";
            this.tableCell6.TextAlignment = TextAlignment.TopRight;
            this.tableCell6.Weight = 0.276557325576067;
            this.f_tongtiennhap.DataMember = "Table";
            this.f_tongtiennhap.Expression = "[gianhap] *[slnhap]";
            this.f_tongtiennhap.FieldType = FieldType.Decimal;
            this.f_tongtiennhap.Name = "f_tongtiennhap";
            this.TopMargin.HeightF = 49.859f;
            this.TopMargin.Name = "TopMargin";
            this.TopMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.TopMargin.TextAlignment = TextAlignment.TopLeft;
            this.xrTableCell6.Name = "xrTableCell6";
            this.xrTableCell6.StylePriority.UseTextAlignment = false;
            summary.FormatString = "{0:.}";
            summary.Func = SummaryFunc.RecordNumber;
            summary.Running = SummaryRunning.Report;
            this.xrTableCell6.Summary = summary;
            this.xrTableCell6.Text = "xrTableCell6";
            this.xrTableCell6.TextAlignment = TextAlignment.TopRight;
            this.xrTableCell6.Weight = 0.10622570065068214;
            this.fr_tungaydenngay.DataMember = "Table";
            this.fr_tungaydenngay.Expression = "Iif([tungay]=[denngay], 'Ng\x00e0y '+[tungay] ,'Từ ng\x00e0y '+[tungay]+' đến ng\x00e0y '+[denngay])";
            this.fr_tungaydenngay.FieldType = FieldType.String;
            this.fr_tungaydenngay.Name = "fr_tungaydenngay";
            this.label40.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "Table.fr_tungaydenngay") });
            this.label40.Font = new Font("Times New Roman", 12f);
            this.label40.LocationFloat = new PointFloat(152.0354f, 51.88462f);
            this.label40.Name = "label40";
            this.label40.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.label40.SizeF = new SizeF(495.9166f, 23f);
            this.label40.StylePriority.UseFont = false;
            this.label40.StylePriority.UseTextAlignment = false;
            this.label40.Text = "label40";
            this.label40.TextAlignment = TextAlignment.TopCenter;
            this.tableCell15.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "Table.slnhap") });
            this.tableCell15.KeepTogether = true;
            this.tableCell15.Name = "tableCell15";
            this.tableCell15.StylePriority.UseTextAlignment = false;
            summary2.FormatString = "{0:#,#}";
            summary2.Running = SummaryRunning.Report;
            this.tableCell15.Summary = summary2;
            this.tableCell15.Text = "tableCell15";
            this.tableCell15.TextAlignment = TextAlignment.TopRight;
            this.tableCell15.Weight = 0.424731176356003;
            this.tableCell5.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "Table.slnhap", "{0:#,#}") });
            this.tableCell5.Name = "tableCell5";
            this.tableCell5.Padding = new PaddingInfo(2, 2, 0, 2, 100f);
            this.tableCell5.StylePriority.UsePadding = false;
            this.tableCell5.StylePriority.UseTextAlignment = false;
            this.tableCell5.Text = "tableCell5";
            this.tableCell5.TextAlignment = TextAlignment.TopRight;
            this.tableCell5.Weight = 0.26389864297405186;
            this.PageHeader.HeightF = 0f;
            this.PageHeader.Name = "PageHeader";
            this.BottomMargin.HeightF = 51.76284f;
            this.BottomMargin.Name = "BottomMargin";
            this.BottomMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.BottomMargin.TextAlignment = TextAlignment.TopLeft;
            this.tableCell17.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "Table.f_tongtiennhap") });
            this.tableCell17.KeepTogether = true;
            this.tableCell17.Name = "tableCell17";
            summary3.FormatString = "{0:#,#}";
            summary3.Running = SummaryRunning.Report;
            this.tableCell17.Summary = summary3;
            this.tableCell17.Text = "tableCell17";
            this.tableCell17.Weight = 0.4554783727024459;
            this.f_tongsoluongxuatkhac.DataMember = "Table";
            this.f_tongsoluongxuatkhac.Expression = "0";
            this.f_tongsoluongxuatkhac.FieldType = FieldType.Decimal;
            this.f_tongsoluongxuatkhac.Name = "f_tongsoluongxuatkhac";
            this.xrTable1.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrTable1.Font = new Font("Times New Roman", 8f);
            this.xrTable1.LocationFloat = new PointFloat(48.52848f, 0f);
            this.xrTable1.Name = "xrTable1";
            this.xrTable1.Rows.AddRange(new XRTableRow[] { this.xrTableRow1 });
            this.xrTable1.SizeF = new SizeF(752.7807f, 25f);
            this.xrTable1.StylePriority.UseBorders = false;
            this.xrTable1.StylePriority.UseFont = false;
            this.GroupFooter1.Controls.AddRange(new XRControl[] { this.table1 });
            this.GroupFooter1.HeightF = 25f;
            this.GroupFooter1.Name = "GroupFooter1";
            this.tableCell12.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.tableCell12.Name = "tableCell12";
            this.tableCell12.StylePriority.UseFont = false;
            this.tableCell12.StylePriority.UseTextAlignment = false;
            this.tableCell12.Text = "Tổng cộng";
            this.tableCell12.TextAlignment = TextAlignment.TopCenter;
            this.tableCell12.Weight = 2.0334546390134038;
            this.tableRow1.Cells.AddRange(new XRTableCell[] { this.tableCell12, this.tableCell15, this.tableCell3, this.tableCell17 });
            this.tableRow1.KeepTogether = false;
            this.tableRow1.Name = "tableRow1";
            this.tableRow1.Weight = 1.0;
            this.xrLabel1.Font = new Font("Times New Roman", 18f, FontStyle.Bold);
            this.xrLabel1.LocationFloat = new PointFloat(152.0354f, 12.08334f);
            this.xrLabel1.Name = "xrLabel1";
            this.xrLabel1.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel1.SizeF = new SizeF(495.9162f, 39.80129f);
            this.xrLabel1.StylePriority.UseFont = false;
            this.xrLabel1.StylePriority.UseTextAlignment = false;
            this.xrLabel1.Text = "SỔ NHẬP KHO";
            this.xrLabel1.TextAlignment = TextAlignment.MiddleCenter;
            this.table1.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.table1.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.table1.KeepTogether = true;
            this.table1.LocationFloat = new PointFloat(48.52847f, 0f);
            this.table1.Name = "table1";
            this.table1.Padding = new PaddingInfo(2, 2, 2, 0, 100f);
            this.table1.Rows.AddRange(new XRTableRow[] { this.tableRow1 });
            this.table1.SizeF = new SizeF(752.7807f, 25f);
            this.table1.StylePriority.UseBorders = false;
            this.table1.StylePriority.UseFont = false;
            this.table1.StylePriority.UsePadding = false;
            this.table1.StylePriority.UseTextAlignment = false;
            this.table1.TextAlignment = TextAlignment.TopRight;
            this.ReportFooter.Controls.AddRange(new XRControl[] { this.label39, this.label38 });
            this.ReportFooter.HeightF = 87.47327f;
            this.ReportFooter.Name = "ReportFooter";
            this.tableCell3.Name = "tableCell3";
            this.tableCell3.Weight = 0.4451037821569403;
            this.ReportHeader.Controls.AddRange(new XRControl[] { this.label40, this.xrLabel1 });
            this.ReportHeader.HeightF = 77.0449f;
            this.ReportHeader.Name = "ReportHeader";
            this.Detail.Controls.AddRange(new XRControl[] { this.xrTable1 });
            this.Detail.HeightF = 25f;
            this.Detail.Name = "Detail";
            this.Detail.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.Detail.TextAlignment = TextAlignment.TopLeft;
            this.xrTableCell1.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "Table.ten") });
            this.xrTableCell1.Name = "xrTableCell1";
            this.xrTableCell1.Text = "xrTableCell1";
            this.xrTableCell1.Weight = 0.60071393592583033;
            this.tableCell7.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "Table.f_tongtiennhap", "{0:#,#}") });
            this.tableCell7.Name = "tableCell7";
            this.tableCell7.Padding = new PaddingInfo(2, 2, 0, 2, 100f);
            this.tableCell7.StylePriority.UsePadding = false;
            this.tableCell7.StylePriority.UseTextAlignment = false;
            this.tableCell7.Text = "tableCell7";
            this.tableCell7.TextAlignment = TextAlignment.TopRight;
            this.tableCell7.Weight = 0.28300228390545829;
            this.f_tongsoluongnhap.DataMember = "Table";
            this.f_tongsoluongnhap.Expression = "[sltondau] + [slnhap]";
            this.f_tongsoluongnhap.FieldType = FieldType.Decimal;
            this.f_tongsoluongnhap.Name = "f_tongsoluongnhap";
            this.f_tongtientoncuoi.DataMember = "Table";
            this.f_tongtientoncuoi.Expression = "[gianhap] * [sltoncuoi]";
            this.f_tongtientoncuoi.FieldType = FieldType.Decimal;
            this.f_tongtientoncuoi.Name = "f_tongtientoncuoi";
            this.tableCell1.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "Table.dvt") });
            this.tableCell1.Name = "tableCell1";
            this.tableCell1.Padding = new PaddingInfo(2, 2, 0, 2, 100f);
            this.tableCell1.StylePriority.UsePadding = false;
            this.tableCell1.Text = "tableCell1";
            this.tableCell1.Weight = 0.15672587846956904;
            this.xrTableRow1.Cells.AddRange(new XRTableCell[] { this.xrTableCell6, this.xrTableCell1, this.tableCell1, this.xrTableCell4, this.tableCell2, this.tableCell5, this.tableCell6, this.tableCell7 });
            this.xrTableRow1.Name = "xrTableRow1";
            this.xrTableRow1.Padding = new PaddingInfo(2, 0, 0, 2, 100f);
            this.xrTableRow1.StylePriority.UsePadding = false;
            this.xrTableRow1.Weight = 1.0;
            this.xrTableCell4.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "Table.losx") });
            this.xrTableCell4.Name = "xrTableCell4";
            this.xrTableCell4.Padding = new PaddingInfo(2, 2, 0, 2, 100f);
            this.xrTableCell4.StylePriority.UsePadding = false;
            this.xrTableCell4.Text = "xrTableCell4";
            this.xrTableCell4.Weight = 0.18934292293110824;
            this.label38.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.label38.LocationFloat = new PointFloat(623.1842f, 9.999974f);
            this.label38.Name = "label38";
            this.label38.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.label38.SizeF = new SizeF(178.125f, 23f);
            this.label38.StylePriority.UseFont = false;
            this.label38.StylePriority.UseTextAlignment = false;
            this.label38.Text = "Người lập bảng";
            this.label38.TextAlignment = TextAlignment.TopCenter;
            this.tableCell2.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "Table.handung") });
            this.tableCell2.Name = "tableCell2";
            this.tableCell2.Padding = new PaddingInfo(2, 2, 0, 2, 100f);
            this.tableCell2.StylePriority.UsePadding = false;
            this.tableCell2.Text = "tableCell2";
            this.tableCell2.Weight = 0.2104399275726157;
            this.GroupHeader1.Controls.AddRange(new XRControl[] { this.xrLabel3, this.xrLabel2 });
            this.GroupHeader1.GroupFields.AddRange(new GroupField[] { new GroupField("hoadon", XRColumnSortOrder.Ascending) });
            this.GroupHeader1.Name = "GroupHeader1";
            this.xrLabel2.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel2.LocationFloat = new PointFloat(48.52847f, 10.00001f);
            this.xrLabel2.Name = "xrLabel2";
            this.xrLabel2.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel2.SizeF = new SizeF(86.33318f, 22.99998f);
            this.xrLabel2.StylePriority.UseFont = false;
            this.xrLabel2.StylePriority.UseTextAlignment = false;
            this.xrLabel2.Text = "H\x00f3a đơn số:";
            this.xrLabel2.TextAlignment = TextAlignment.TopCenter;
            this.xrLabel3.DataBindings.AddRange(new XRBinding[] { new XRBinding("Text", null, "Table.hoadon") });
            this.xrLabel3.LocationFloat = new PointFloat(134.8617f, 10.00001f);
            this.xrLabel3.Name = "xrLabel3";
            this.xrLabel3.Padding = new PaddingInfo(2, 2, 0, 0, 96f);
            this.xrLabel3.SizeF = new SizeF(100f, 23f);
            this.xrLabel3.Text = "xrLabel3";
            base.Bands.AddRange(new Band[] { this.Detail, this.TopMargin, this.BottomMargin, this.ReportHeader, this.PageHeader, this.ReportFooter, this.GroupFooter1, this.GroupHeader1 });
            base.CalculatedFields.AddRange(new CalculatedField[] { this.f_tongtiennhap, this.f_tongtientoncuoi, this.f_tongsoluongnhap, this.f_tongsoluongxuatkhac, this.fr_tungaydenngay });
            base.DataMember = "Table";
            base.Margins = new Margins(11, 11, 50, 0x34);
            base.Version = "12.2";
            this.XmlDataPath = @"F:\Project\phongmach_2012\QLPhongMach\QLPhongMach\bin\Debug\dataxml\d_bc_sonhapkhochitiet.xml";
            this.xrTable1.EndInit();
            this.table1.EndInit();
            this.EndInit();
        }
    }
}

